#include <iostream>
using namespace std;

int main(){
    int scores[3][3] =
	{
		{100,100,100},
		{90,50,100},
		{60,70,80},
	};
    string names[3] = { "张三","李四","王五" };
    for (int i = 0; i < sizeof(scores[0]) / sizeof(scores[0][0]); i++)
    {
        /* code */
        int sum = 0;
        for (int j = 0; j < sizeof(scores) / sizeof(scores[0]); j++)
        {
            /* code */
            sum += scores[j][i];
        }
        cout << names[i] << "的总成绩是: " << sum << endl;
    }
    
    return 0;
}